package com.csu.dao;

import com.csu.entiry.Book;

import java.util.List;

public interface BookDao {

    List<Book> getBookList(int current, int size, String key);

    int getTotal(int current, int size, String key);

    void updateBook(Book book);

    void deleteBook(int id);

    void insertBook(Book book);

    Book getBookById(int id);

    int getIdByName(String bookname);

    List<String> searchName(String key);
    List<Book> getBookListByUpSort(String key);
    List<Book> getBookListByDownSort(String key);
}
